package cn.shengchao.examstar.rpc.product.api;

import cn.shengchao.examstar.rpc.product.req.CourseNodeConfig;
import cn.shengchao.examstar.rpc.product.req.SaveCourseNodes;
import cn.shengchao.examstar.rpc.product.res.CourseNodesTree;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface ICourseNodesRpc {

    //添加修改知识点
    Long editCourseNodes(SaveCourseNodes saveCourseNodes) throws ExecutionException, InterruptedException;

    //获取知识点信息
    SaveCourseNodes getCourseNode(Long nodeId);

    //获取知识点树
    List<CourseNodesTree> getCourseNodesTree(Long courseId);

    //删除知识点
    void deleteCourseNodes(Long nodeId);

    //修改知识点配置
    void editCourseNodeConfig(CourseNodeConfig courseNodeConfig);

    //获取知识点配置
    CourseNodeConfig getCourseNodeConfig(Long courseId);

    //知识点生成章节
    void generateChapter(Long courseId,String knowledgePointPath);
}
